<template>
<div id="app">


<van-tabbar v-model="active" route>
  <van-tabbar-item icon="home-o" to="/home">小学通</van-tabbar-item>
  <van-tabbar-item icon="search" to="/list">精品课</van-tabbar-item>
  <van-tabbar-item icon="friends-o">练习</van-tabbar-item>
  <van-tabbar-item icon="setting-o">我的</van-tabbar-item>
</van-tabbar>

<transition name="fade">
   <router-view/>
</transition>

  </div>
</template>

<style lang="scss">
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.2s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
</style>
<script>
export default {
  data(){
    return{
      active:0
    }
  }
}
</script>